/*
	Player Functions
	player_functions.inc
	
	Coded by Midzi
*/

Name(playerid)
{
	new GetNamePlayer[MAX_PLAYER_NAME];
	
	GetPlayerName(playerid, GetNamePlayer, sizeof GetNamePlayer);

	return GetNamePlayer;
}

// -----------------------------------------------------------------------------

CheckPlayerConnect(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    return true;
	}
	else
	{
	    return false;
	}

	return false;
}

// -----------------------------------------------------------------------------

CheckPlayerSpawned(playerid)
{
	if(GetPlayerState(playerid) == PLAYER_STATE_SPAWNED)
	{
	    return true;
	}
	else
	{
	    return false;
	}

	return false;
}

// -----------------------------------------------------------------------------
